import http from "../../utils/http"

const productbasics = {
    // 获取产品spu列表
    getproductList: (data) => http.get('/product_spu/list', data),
    // 新增产品spu
    addproduct: (data) => http.post('/product_spu/add', data),
    // 编辑产品spu
    editproduct: (data) => http.put('/product_spu/edit', data),
    // 删除产品spu（支持单个和批量删除）
    deleteproduct: (ids) => http.delete('/product_spu/delete', { ids }),

}

export default productbasics;